<div class="align-center">
    <p class="show-price"><span class="format-price"><?php echo $userProduct[0]['Product']['price']?></span> VND</p>
</div>
<div class="res-width">
<?php 
foreach($userProduct as $key=>$row):
    $suggestTime = strtotime($row['UserProduct']['created_date']); 
    $activeTime = strtotime($userProduct[0]['Product']['active_time']);
    $realTime = intval($suggestTime - $activeTime);
?>
    <div class="user-box<?php echo ($key == 4)? ' last':''?>">
        <div class="time-block">
            <p class="second-text <?php echo ($row['UserProduct']['win'])?'win':''?>"><?php echo $realTime;?>s</p>
        </div>
		<div style="clear:both">&nbsp;</div>
		<!--
		<div class="img-user mt-50 mr-10">
            <img src="/images/img_user.jpg" alt="" />
            <img src="/images/fr_product_01.png" alt="" class="fr-user" />
        </div>
		-->
        <p class="user-name"><?php echo $row['User']['fullname']; ?></p>
        <p class="price-vote <?php echo ($row['UserProduct']['win'])?'win':''?>"><span class="format-price"><?php echo $row['UserProduct']['price_suggest']; ?></span> VND</p>
    </div><!-- /user-box -->
<?php endforeach;?>
<div>
<script type="text/javascript">
$(function(){
   $('.format-price').number(true);
});
</script>